Home > Overview subscription-engine card (4-week schedule + health tiles)
Returns the forward-looking recurring-revenue snapshot: four weekly scheduled-revenue bars for the next 28 days, the active subscriber count (with net change this month), the recovery rate (with a trailing 6-month baseline), and cancels this month (with a trailing 6-month monthly-average baseline).
Active subscribers = active + past_due — past-due subs
still bill through dunning and still count as customers.
Recovery rate uses a simple failed→succeeded transition proxy;
Card 6 will formalise the full recovered / retrying /
written-off split.
Authorizations
Bearer token authentication. Requires a company-admin token
whose role holds reports.view. Additionally, the caller's
company must have ANALYTICS_DASHBOARD enabled — otherwise
every endpoint returns 404.
Query Parameters
ISO alpha-2 code of one of the requesting company's configured
countries (see GET /countries). When present, every service
on this endpoint filters its data to that country and reports
money in the country's own currency. Omit (or send "all")
for the aggregate-across-countries view, which is the default
and matches pre-Phase-004 behavior. Unknown ISO codes or ones
the company is not configured for return 400.
"US"
Response
Subscription-engine card payload
One entry per week for the next four calendar weeks
starting today. Sums commerce_subscriptions.price on
active + past_due subs whose next_bill_date falls in
each 7-day slot.
Decimal amount, expressed as a string to preserve arbitrary
precision across the wire. Parsed to Number on the client and
formatted with Intl.NumberFormat. Once the in-flight
money-cents-migration lands, this will switch to a
{ amount_cents: integer, currency: string } object.
"180.25"
Recovery rate = the fraction of failed billing events in
the range whose subscription later produced a succeeded
billing event. baseline_rate is the same metric over
the trailing 6 months (before this month).
ISO 4217 three-letter code (uppercase).
3"USD"